#pragma once
#include <memory>
#include <nice2d/actions/finitetimeaction.h>

enum RotateDirection {
    RotateDirection_Left = 0,
    RotateDirection_Right
};

class RotateAction : public FiniteTimeAction
{
public:
    RotateAction(RotateDirection direction = RotateDirection_Left, float duration = 3.0f);
    ~RotateAction();
public:
    void setRotate(float angle);
protected:
    void update(float deltaTime)override;
private:
    std::unique_ptr<class RotateActionData> data;
};
